using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class Sacculus_DiameterMap : EntityTypeConfiguration<Sacculus_Diameter>
    {
        public Sacculus_DiameterMap()
        {
            // Primary Key
            this.HasKey(t => t.SD_ID);

            // Properties
            this.Property(t => t.SD_Diameter)
                .HasMaxLength(20);

            this.Property(t => t.HospitalId)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("Sacculus_Diameter");
            this.Property(t => t.SD_ID).HasColumnName("SD_ID");
            this.Property(t => t.SD_NID).HasColumnName("SD_NID");
            this.Property(t => t.SD_Diameter).HasColumnName("SD_Diameter");
            this.Property(t => t.State).HasColumnName("State");
            this.Property(t => t.create_time).HasColumnName("create_time");
            this.Property(t => t.HospitalId).HasColumnName("HospitalId");
        }
    }
}
